<?php
/**
* @package Scribble
*/
use Buan\UrlCommand;
?>
<div class="head">
	<h1>My Preferences</h1>
</div>

<form method="post" action="<?php $this->html->eUrl(UrlCommand::createUrl('scribble', 'preferences')); ?>">
	<div class="std std-2col">
		<div class="col-left">
			<dl>
				<dt>Admin interface language</dt>
				<dt class="aid">All admin interfaces will be displayed in this language</dt>
				<dd>
					<select name="adminLanguage">
					<?php foreach($adminLanguages as $l): $sel = $l['code']===$prefs->get('adminLanguage'); ?>
						<option value="<?php echo $l['code']; ?>" <?php echo $sel ? 'selected="selected"' : ''; ?>><?php $this->html->e($l['labelNative']); ?></option>
					<?php endforeach; ?>
					</select>
				</dd>
			</dl>
		</div>
	</div>

	<p>
		<button class="submit" value="Save">Save</button>
	</p>
</form>